package com_.dxy_test_.class_load_;

/**
 * @Description TODO
 * @Author dangxianyue
 * @Date 2024/1/28 16:35
 */
public class Son extends Father {

    private static String sonStaticField = initStaticField();
    private String sonInstanceField = initInstanceField();


    static {
        System.out.println("子类-静态代码块");
    }

    public Son() {
        System.out.println("子类-构造方法");
    }

    private static String initStaticField() {
        System.out.println("子类-静态字段赋值");
        return "son_static";
    }


    private String initInstanceField() {
        System.out.println("子类-实例字段赋值");
        return "son_instance";
    }


}
